<?php


namespace app\api\validate;


use think\Validate;

class Truename extends Validate
{
    protected $rule =   [
        'truename' => 'require|max:4',
        'account' => 'require|max:11|/^1[3-8]{1}[0-9]{9}$/',
    ];

    protected $message  =   [
        'truename.require' => '学生姓名不能为空',
        'truename.max' => '学生姓名最多不能超过4个字符',
        'account.require' => '联系方式不能为空',
        'account.max' => '联系方式最多不能超过11个字符',
    ];
}